function polling_task()
{

    check_message();

}

function check_message()
{

    console.log("check_message");

    data = loadFile('http://127.0.0.1/~yishii/kobe_hackathon/test.txt');
//    data = loadFile('http://192.168.254.101/~yishii/kobe_hackathon/test.txt');

    console.log(data);

}
  
function loadFile(fileName){
    var data="";
    httpObj = new XMLHttpRequest();
    httpObj.open('GET',fileName+"?"+(new Date()).getTime(),true);
    httpObj.send(null);
    httpObj.onreadystatechange = function(){
	if ( (httpObj.readyState == 4) && (httpObj.status == 200) ){
            //document.getElementById("text1").value=httpObj.responseText;
	    returnedData = httpObj.responseText;
//	    console.log("in"+returnedData);
	}
    }



//    console.log(httpObj.responseText);
    return(returnedData);

   }



